package com.xyz.service;

import com.xyz.entity.Mark;
import com.xyz.entity.User;
import com.xyz.mapper.MarkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MarkService {
    @Autowired
    private MarkMapper markMapper;
    public int addMark(Mark mark) {
        markMapper.addMark(mark);
        return 0;
    }
    public int cancel(Mark mark) {
        markMapper.cancel(mark);
        return 0;
    }
    public List<User> list(Integer userid){
      return  markMapper.list(userid);
    }

}
